from selenium.webdriver.common.by import By

from page_object.pages.BasePage import BasePage
from page_object.pages.PeiWanDetailPage import PeiWanDetailPage


class PeiWanListPage(BasePage):
    # 陪玩列表
    _linearlayout = (By.ID, 'linearlayout')


    def go_to_peiwan_detail(self):
        self.find(self._linearlayout).click()
        return PeiWanDetailPage()